package cn.jinjimi.app.main.widget;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;

import cn.jinjimi.app.AccountManager;

/**
 * Created by Roy
 * Date: 2017/4/26
 */

public class ZdbFeeTextView extends AppCompatTextView {

    public ZdbFeeTextView(Context context) {
        super(context);
    }

    public ZdbFeeTextView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public ZdbFeeTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void setZdbFeeText(CharSequence text) {

        if (AccountManager.getInstance().isLogin()) {
            setText(text);
        } else {
            setText("推广费登录后可见");
        }
    }
}
